package com.mall.seckill.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author White
 * @version 1.0
 * @email 616769721@qq.com
 * @date 2021/7/18 11:31
 */
@Data
public class SeckillItemVo implements Serializable {

    private Long id;

    private Long itemSpecId;

    private Long seckillId;

    private String title;

    private String introduction;

    private BigDecimal seckillPrice;

    private Integer seckillNum;

    private Integer saleNum;

    private String status;

    private String carouseImage;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    private Integer count;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date activityTime;

    private String itemSpecIdJson;

    private String reserved1;

    private double rate;

    private Long gid;

    private String image;

    private String details;
}
